<extend name="Public/base"/>
<!-- 子导航 -->
<block name="sidebar">
    <include file="sidemenu" />
</block>
<block name="body">
    <div class="main-title">
        <h2>
            已完成订单
        </h2>
    </div>
    <div class="cf">
        <div class="fl">
            <a class="btn" href="{:U('add')}">新 增</a>
        </div>
    </div>
    <!-- 数据表格 -->
    <div class="data-table">
        <table class="">
            <thead>
            <tr>
                <th class="">编号</th>
                <th class="">标题</th>
                <th class="">发布时间</th>
                <th class="">截止时间</th>
                <th class="">客户类型</th>
                <th class="">状态</th>
                <th class="">发布至</th>
                <th class="">操作</th>
            </tr>
            </thead>
            <tbody>
            <volist name="list" id="vo">
                <tr>
                    <td><span>{$vo.id}</span></td>
                    <td><span>{$vo.title}</span></td>
                    <td><span>{$vo.release} </span></td>
                    <td><span>{$vo.validity}</span></td>
                    <td><span>{$vo.type}</span></td>
                    <td><span><switch name="vo.show">
                        <case value="1">已发布</case>
                        <case value="5">成功案例</case>
                        <default/>未发布</switch></span>
                    </td>
                    <td>
                        <a href="{:U('Client/release',array('id'=>$vo['id'],'show'=>0))}" class="btn confirm ajax-get">下架</a>
                        <a href="{:U('Client/release',array('id'=>$vo['id'],'show'=>1))}" class="btn confirm ajax-get">发布</a>
                        <a href="{:U('Client/release',array('id'=>$vo['id'],'show'=>5))}" class="btn confirm ajax-get">成功案例</a>
                    </td>
                    <td><a href="{:U('Client/detail?id='.$vo['id'])}">查看</a>
                        <a href="{:U('Client/delete?id='.$vo['id'])}" class="confirm ajax-get">删除</a>
                    </td>
                </tr>
            </volist>
            </tbody>
        </table>
    </div>
    <!-- 分页 -->
    <div class="page">
        {$page}
    </div>
    </div>
</block>